package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.SitesCommentMapper;
import com.yunji.framework_template.orm.persistence.model.SitesComment;

/**
 * Created by fenglibin on 2018/11/15.
 */
@Service
public class SitesCommentService {

    @Autowired
    private SitesCommentMapper sitesCommentMapper;

    public int deleteByPrimaryKey(Integer id) {
        return sitesCommentMapper.deleteByPrimaryKey(id);
    }

    public int insert(SitesComment record) {
        return sitesCommentMapper.insert(record);
    }

    public int insertSelective(SitesComment record) {
        return sitesCommentMapper.insertSelective(record);
    }

    public SitesComment selectByPrimaryKey(Integer id) {
        return sitesCommentMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SitesComment record) {
        return sitesCommentMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKeyWithBLOBs(SitesComment record) {
        return sitesCommentMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    public int updateByPrimaryKey(SitesComment record) {
        return sitesCommentMapper.updateByPrimaryKey(record);
    }

    public List<SitesComment> selectByCondition(SitesComment record) {
        return sitesCommentMapper.selectByCondition(record);
    }

    public List<SitesComment> selectAll() {
        return sitesCommentMapper.selectAll();
    }

    public List<SitesComment> selectByPage(Page<SitesComment> page) {
        return sitesCommentMapper.selectByPage(page);
    }

    public Integer count(SitesComment record) {
        return sitesCommentMapper.count(record);
    }

    public int deleteByCondition(SitesComment record) {
        return sitesCommentMapper.deleteByCondition(record);
    }

}
